package com.dt.system.domain;

import com.dt.common.annotation.Excel;
import com.dt.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class ModRepositories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库房ID */
    private Long id;

    /** 库房名称 */
    @Excel(name = "库房名称")
    private String name;

    /** 区县编号（所属区域的编号） */
    @Excel(name = "区县编号")
    private String districtId;

    /** 库房编号（CK开头，后追加3-5位排序数字，如“CK001”） */
    @Excel(name = "库房编号")
    private String repositoriesNo;

    /** 货架数量（库房下货架总数量） */
    @Excel(name = "库架数量")
    private Integer shelvesNum;

    /** 层格数量（库房下层格总数量） */
    @Excel(name = "层格数量")
    private Integer layerNum;

    /** 盒子数量（库房下盒子总数量） */
    @Excel(name = "盒子数量")
    private Integer boxNum;

    /** 当前存放档案数量 */
    @Excel(name = "当前存放档案数量")
    private Long fileUseNum;

    /** 库房面积（单位：平方米） */
    @Excel(name = "库房面积")
    private String area;

    /** 归档年份 */
    @Excel(name = "归档年份")
    private String year;

    /** 库房位置 */
    @Excel(name = "库房位置")
    private String address;

    /** 库房描述 */
    @Excel(name = "库房描述")
    private String remark;

    @Excel(name = "创建者")
    private String createBy;

    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "更新者")
    private String updateBy;

    @Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 库房状态（0正常 1停用） */
    @Excel(name = "库房状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDistrictId(String districtId) 
    {
        this.districtId = districtId;
    }

    public String getDistrictId() 
    {
        return districtId;
    }
    public void setRepositoriesNo(String repositoriesNo) 
    {
        this.repositoriesNo = repositoriesNo;
    }

    public String getRepositoriesNo() 
    {
        return repositoriesNo;
    }
    public void setShelvesNum(Integer shelvesNum) 
    {
        this.shelvesNum = shelvesNum;
    }

    public Integer getShelvesNum() 
    {
        return shelvesNum;
    }
    public void setLayerNum(Integer layerNum) 
    {
        this.layerNum = layerNum;
    }

    public Integer getLayerNum() 
    {
        return layerNum;
    }
    public void setBoxNum(Integer boxNum) 
    {
        this.boxNum = boxNum;
    }

    public Integer getBoxNum() 
    {
        return boxNum;
    }
    public void setFileUseNum(Long fileUseNum) 
    {
        this.fileUseNum = fileUseNum;
    }

    public Long getFileUseNum() 
    {
        return fileUseNum;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("name", getName())
            .append("districtId", getDistrictId())
            .append("repositoriesNo", getRepositoriesNo())
            .append("shelvesNum", getShelvesNum())
            .append("layerNum", getLayerNum())
            .append("boxNum", getBoxNum())
            .append("fileUseNum", getFileUseNum())
            .append("area", getArea())
            .append("year", getYear())
            .append("address", getAddress())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
